﻿@model IEnumerable<SimpleTaskManager.WebUI.Models.RelatedUsersModel>


<table class="tablesorter" id="relatedUsersTable">
<thead>
        <tr>
            <th>Name</th>
            <th>E-mail</th>
        </tr>
</thead>
<tbody>
        @foreach (var u in Model)
        {
            <tr>
                <td>@Html.ActionLink(u.Name, "Details", "User", null, new { id = u.UserId })</td>
                <td><a href="mailto:@u.Email">@u.Email</a></td>
            </tr>
        }
</tbody>
    </table>
<script type="text/javascript">
    $(document).ready(function () {
        $("#relatedUsersTable").dataTable({ bJQueryUI: true, sPaginationType: "full_numbers" });
    }
);
</script>